package pl.myapp.webtest.events.listener;

import org.slf4j.Logger;
import pl.myapp.webtest.config.qualifier.MyLogger;
import pl.myapp.webtest.events.qualifier.WhiteCoffee;
import pl.myapp.webtest.events.stuff.CupOfCoffee;

import javax.enterprise.event.Observes;
import javax.inject.Inject;

/**
 * Created by IntelliJ IDEA.
 * User: kaafaar
 * Date: 16.05.11
 * Time: 22:43
 * To change this template use File | Settings | File Templates.
 */
public class CoffeeSomeOtherListerner {
    @Inject
	@MyLogger
    Logger logger;

    public void createNewCoffee(@Observes @WhiteCoffee CupOfCoffee cupOfCoffee) {
        logger.info("S O M E  O T H E R  F I R E  C O F F E E ! ! ! ! ! "+cupOfCoffee.toString());
    }

    public void createOneMoreNewCoffee(@Observes @WhiteCoffee CupOfCoffee cupOfCoffee) {
        logger.info("O N E  M O R E  F I R E  C O F F E E ! ! ! ! ! "+cupOfCoffee.toString());
    }

    public void createAnotherMoreNewCoffee(@Observes @WhiteCoffee CupOfCoffee cupOfCoffee) {
        logger.info("And another fire white coffee ! ! ! ! ! "+cupOfCoffee.toString());
    }
}
